package com.sinodata.bsm.center.bean;

import java.util.ArrayList;
import java.util.List;

import com.sinodata.bsm.center.cache.DimensionCache;
import com.sinodata.bsm.center.cache.ResCache;
import com.sinodata.bsm.center.util.spring.SpringContextHolder;
import com.sinodata.bsm.common.utils.StringUtil;
import com.sinodata.bsm.common.vo.Dimension;

/**
 * 维度处理的辅助对象
 * 
 * @author huzhiyong
 * 
 */
public class DimensionBean {
    //维度对象
    private Dimension dimension;
    //合并行
    private int rowspan;
    // 合并列
    private int colspan;
    //表格层级
    private int level;
    // 维度父元素
    private DimensionBean parentDimensionBean;
    // 维度的子元素
    private List<DimensionBean> dimensionBeanList = new ArrayList<DimensionBean>();

    public DimensionBean(Dimension dimension) {
        this.dimension = dimension;
    }

    public Dimension getDimension() {
        return dimension;
    }

    public void setDimension(Dimension dimension) {
        this.dimension = dimension;
    }

    public List<DimensionBean> getDimensionBeanList() {
        return dimensionBeanList;
    }

    public void setDimensionBeanList(List<DimensionBean> dimensionBeanList) {
        this.dimensionBeanList = dimensionBeanList;
    }

    public int getRowspan() {
        return rowspan;
    }

    public void setRowspan(int rowspan) {
        this.rowspan = rowspan;
    }

    public int getColspan() {
        return colspan;
    }

    public void setColspan(int colspan) {
        this.colspan = colspan;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public DimensionBean getParentDimensionBean() {
        return parentDimensionBean;
    }

    public void setParentDimensionBean(DimensionBean parentDimensionBean) {
        this.parentDimensionBean = parentDimensionBean;
    }

}
